home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Animacje, filmy i prezentacje / Modelowanie 3D / K-3D 0.6.5.0 / k3d-all-in-one-setup-0.6.5.0.exe / k3d-setup-0.6.5.0.exe / share / shaders / k3d_isshad.h < prev    next >
Encoding:
Text File  |  2004-05-19  |  526 b   |  21 lines

  1. /***********************************************************/
  2. /*** Return 1 if we're pretty sure this is a shadow pass ***/
  3. /***********************************************************/
  4.  
  5. float is_shadow_pass()
  6. {
  7.     float fmt[3];
  8.     string sc;
  9.     float is = 0;
  10.     option("Format",fmt);
  11.     attribute("identifier:name",sc);
  12.     /* square pic - can't be a regular camera */
  13.     /* not a glimpse editor window? */
  14.     if ((sc != "<unnamed>") &&
  15.     ((fmt[0] == fmt[1]) && (fmt[2] == 1.0)) )  {
  16.         is = 1;
  17.     }
  18.     return(is);
  19. }
  20.  
  21.